import 'package:love_newf/generated/json/base/json_field.dart';
import 'package:love_newf/generated/json/data_upload_info.g.dart';
import 'dart:convert';

@JsonSerializable()
class DataUploadInfo {
  int? id;
  String? name;
  String? url;
  dynamic data;
  int reconnectCount=0;
  ///0 未开始，1 执行中，-1 执行失败 2 完成
  int status=0;

  DataUploadInfo();

  factory DataUploadInfo.fromJson(Map<String, dynamic> json) =>
      $DataUploadInfoFromJson(json);

  Map<String, dynamic> toJson() => $DataUploadInfoToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
